<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="交友ID" prop="friendId">
        <el-input
          v-model="queryParams.friendId"
          placeholder="请输入交友ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="邀请人ID" prop="visitUserId">
        <el-input
          v-model="queryParams.visitUserId"
          placeholder="请输入邀请人ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部门ID" prop="deptId">
        <el-input
          v-model="queryParams.deptId"
          placeholder="请输入部门ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="公众号ID" prop="wxId">
        <el-input
          v-model="queryParams.wxId"
          placeholder="请输入公众号ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="小程序ID" prop="appId">
        <el-input
          v-model="queryParams.appId"
          placeholder="请输入小程序ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="unionId" prop="unionId">
        <el-input
          v-model="queryParams.unionId"
          placeholder="请输入unionId"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="openId" prop="openId">
        <el-input
          v-model="queryParams.openId"
          placeholder="请输入openId"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="公众号openId" prop="wxOpenId">
        <el-input
          v-model="queryParams.wxOpenId"
          placeholder="请输入公众号openId"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="提现比例" prop="cashRate">
        <el-input
          v-model="queryParams.cashRate"
          placeholder="请输入提现比例"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="价格" prop="shopPrice">
        <el-input
          v-model="queryParams.shopPrice"
          placeholder="请输入价格"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="投票次数" prop="voteNum">
        <el-input
          v-model="queryParams.voteNum"
          placeholder="请输入投票次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用户账号" prop="userName">
        <el-input
          v-model="queryParams.userName"
          placeholder="请输入用户账号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用户昵称" prop="nickName">
        <el-input
          v-model="queryParams.nickName"
          placeholder="请输入用户昵称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="个性签名" prop="signName">
        <el-input
          v-model="queryParams.signName"
          placeholder="请输入个性签名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用户邮箱" prop="email">
        <el-input
          v-model="queryParams.email"
          placeholder="请输入用户邮箱"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="手机号码" prop="phonenumber">
        <el-input
          v-model="queryParams.phonenumber"
          placeholder="请输入手机号码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身份证正面" prop="idCardFront">
        <el-input
          v-model="queryParams.idCardFront"
          placeholder="请输入身份证正面"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身份证反面" prop="idCardBack">
        <el-input
          v-model="queryParams.idCardBack"
          placeholder="请输入身份证反面"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否单身" prop="isDog">
        <el-input
          v-model="queryParams.isDog"
          placeholder="请输入是否单身"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身份证姓名" prop="idName">
        <el-input
          v-model="queryParams.idName"
          placeholder="请输入身份证姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="认证手机号" prop="idPhone">
        <el-input
          v-model="queryParams.idPhone"
          placeholder="请输入认证手机号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身份证号码" prop="idNumber">
        <el-input
          v-model="queryParams.idNumber"
          placeholder="请输入身份证号码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身份证有效期" prop="idDateLimit">
        <el-input
          v-model="queryParams.idDateLimit"
          placeholder="请输入身份证有效期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否官方" prop="official">
        <el-input
          v-model="queryParams.official"
          placeholder="请输入是否官方"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否代理" prop="isAgent">
        <el-input
          v-model="queryParams.isAgent"
          placeholder="请输入是否代理"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否线下认证" prop="isAuth">
        <el-input
          v-model="queryParams.isAuth"
          placeholder="请输入是否线下认证"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="场景值" prop="scene">
        <el-input
          v-model="queryParams.scene"
          placeholder="请输入场景值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否黑名单" prop="isBlack">
        <el-input
          v-model="queryParams.isBlack"
          placeholder="请输入是否黑名单"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否是店铺" prop="isStore">
        <el-input
          v-model="queryParams.isStore"
          placeholder="请输入是否是店铺"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否是管理" prop="isManager">
        <el-input
          v-model="queryParams.isManager"
          placeholder="请输入是否是管理"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="微信号" prop="wechat">
        <el-input
          v-model="queryParams.wechat"
          placeholder="请输入微信号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="微信号认证状态" prop="wechatCheck">
        <el-input
          v-model="queryParams.wechatCheck"
          placeholder="请输入微信号认证状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否显示(0否 1是)" prop="isShow">
        <el-input
          v-model="queryParams.isShow"
          placeholder="请输入是否显示(0否 1是)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="姓名" prop="cardName">
        <el-input
          v-model="queryParams.cardName"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身份证号" prop="cardNo">
        <el-input
          v-model="queryParams.cardNo"
          placeholder="请输入身份证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="身高" prop="bodyHeight">
        <el-input
          v-model="queryParams.bodyHeight"
          placeholder="请输入身高"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="体重" prop="bodyWeight">
        <el-input
          v-model="queryParams.bodyWeight"
          placeholder="请输入体重"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="陪玩单价" prop="playCoin">
        <el-input
          v-model="queryParams.playCoin"
          placeholder="请输入陪玩单价"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="游戏昵称" prop="gameName">
        <el-input
          v-model="queryParams.gameName"
          placeholder="请输入游戏昵称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="游戏段位" prop="gameLevel">
        <el-input
          v-model="queryParams.gameLevel"
          placeholder="请输入游戏段位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="游戏大区" prop="gameArea">
        <el-input
          v-model="queryParams.gameArea"
          placeholder="请输入游戏大区"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="生日" prop="birthday">
        <el-date-picker clearable
          v-model="queryParams.birthday"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择生日">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="年龄" prop="age">
        <el-input
          v-model="queryParams.age"
          placeholder="请输入年龄"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="精度" prop="lon">
        <el-input
          v-model="queryParams.lon"
          placeholder="请输入精度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="纬度" prop="lat">
        <el-input
          v-model="queryParams.lat"
          placeholder="请输入纬度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="省" prop="province">
        <el-input
          v-model="queryParams.province"
          placeholder="请输入省"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="市" prop="city">
        <el-input
          v-model="queryParams.city"
          placeholder="请输入市"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="区" prop="district">
        <el-input
          v-model="queryParams.district"
          placeholder="请输入区"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="关注总数" prop="heartNum">
        <el-input
          v-model="queryParams.heartNum"
          placeholder="请输入关注总数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组队总数" prop="gameNum">
        <el-input
          v-model="queryParams.gameNum"
          placeholder="请输入组队总数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="粉丝总数" prop="fansNum">
        <el-input
          v-model="queryParams.fansNum"
          placeholder="请输入粉丝总数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="弹出次数" prop="tipNum">
        <el-input
          v-model="queryParams.tipNum"
          placeholder="请输入弹出次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="动态总数" prop="dynamicNum">
        <el-input
          v-model="queryParams.dynamicNum"
          placeholder="请输入动态总数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="访客总数" prop="visitNum">
        <el-input
          v-model="queryParams.visitNum"
          placeholder="请输入访客总数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否新增访客" prop="visitRead">
        <el-input
          v-model="queryParams.visitRead"
          placeholder="请输入是否新增访客"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="每天添加微信次数" prop="wechatNum">
        <el-input
          v-model="queryParams.wechatNum"
          placeholder="请输入每天添加微信次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="每天发布动态次数" prop="publishNum">
        <el-input
          v-model="queryParams.publishNum"
          placeholder="请输入每天发布动态次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="每天免费打招呼次数" prop="applyNum">
        <el-input
          v-model="queryParams.applyNum"
          placeholder="请输入每天免费打招呼次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="下次打招呼时间" prop="nextApplyTime">
        <el-date-picker clearable
          v-model="queryParams.nextApplyTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择下次打招呼时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="会员次数下次更新时间" prop="nextTime">
        <el-date-picker clearable
          v-model="queryParams.nextTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择会员次数下次更新时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="解封时间" prop="openTime">
        <el-date-picker clearable
          v-model="queryParams.openTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择解封时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="会员开始时间" prop="vipStartTime">
        <el-date-picker clearable
          v-model="queryParams.vipStartTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择会员开始时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="会员结束时间" prop="vipEndTime">
        <el-date-picker clearable
          v-model="queryParams.vipEndTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择会员结束时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="每天查看招呼次数" prop="readNum">
        <el-input
          v-model="queryParams.readNum"
          placeholder="请输入每天查看招呼次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="查看招呼次数下次更新时间" prop="readNextTime">
        <el-date-picker clearable
          v-model="queryParams.readNextTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择查看招呼次数下次更新时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="二维码" prop="qrCode">
        <el-input
          v-model="queryParams.qrCode"
          placeholder="请输入二维码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="新增粉丝数" prop="fansNewNum">
        <el-input
          v-model="queryParams.fansNewNum"
          placeholder="请输入新增粉丝数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="新增评论数" prop="commentNewNum">
        <el-input
          v-model="queryParams.commentNewNum"
          placeholder="请输入新增评论数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="新增点赞数" prop="giveNewNum">
        <el-input
          v-model="queryParams.giveNewNum"
          placeholder="请输入新增点赞数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否完善过基础信息(1已完善0未完善)" prop="isWelcome">
        <el-input
          v-model="queryParams.isWelcome"
          placeholder="请输入是否完善过基础信息(1已完善0未完善)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否贵族" prop="isPay">
        <el-input
          v-model="queryParams.isPay"
          placeholder="请输入是否贵族"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否发送过" prop="isSend">
        <el-input
          v-model="queryParams.isSend"
          placeholder="请输入是否发送过"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否发送过" prop="isTip">
        <el-input
          v-model="queryParams.isTip"
          placeholder="请输入是否发送过"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="支付总额" prop="payNum">
        <el-input
          v-model="queryParams.payNum"
          placeholder="请输入支付总额"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="权重" prop="weight">
        <el-input
          v-model="queryParams.weight"
          placeholder="请输入权重"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="邀请码" prop="inviteCode">
        <el-input
          v-model="queryParams.inviteCode"
          placeholder="请输入邀请码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="头像地址" prop="avatar">
        <el-input
          v-model="queryParams.avatar"
          placeholder="请输入头像地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="密码" prop="password">
        <el-input
          v-model="queryParams.password"
          placeholder="请输入密码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="token" prop="token">
        <el-input
          v-model="queryParams.token"
          placeholder="请输入token"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最后登录IP" prop="loginIp">
        <el-input
          v-model="queryParams.loginIp"
          placeholder="请输入最后登录IP"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最后登录时间" prop="loginDate">
        <el-date-picker clearable
          v-model="queryParams.loginDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择最后登录时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['wq:userRecord:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['wq:userRecord:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['wq:userRecord:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['wq:userRecord:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="userRecordList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="用户ID" align="center" prop="userId" />
      <el-table-column label="交友ID" align="center" prop="friendId" />
      <el-table-column label="邀请人ID" align="center" prop="visitUserId" />
      <el-table-column label="部门ID" align="center" prop="deptId" />
      <el-table-column label="公众号ID" align="center" prop="wxId" />
      <el-table-column label="小程序ID" align="center" prop="appId" />
      <el-table-column label="unionId" align="center" prop="unionId" />
      <el-table-column label="openId" align="center" prop="openId" />
      <el-table-column label="公众号openId" align="center" prop="wxOpenId" />
      <el-table-column label="提现比例" align="center" prop="cashRate" />
      <el-table-column label="价格" align="center" prop="shopPrice" />
      <el-table-column label="投票次数" align="center" prop="voteNum" />
      <el-table-column label="用户账号" align="center" prop="userName" />
      <el-table-column label="用户昵称" align="center" prop="nickName" />
      <el-table-column label="个性签名" align="center" prop="signName" />
      <el-table-column label="用户类型" align="center" prop="userType" />
      <el-table-column label="用户邮箱" align="center" prop="email" />
      <el-table-column label="手机号码" align="center" prop="phonenumber" />
      <el-table-column label="身份证正面" align="center" prop="idCardFront" />
      <el-table-column label="身份证反面" align="center" prop="idCardBack" />
      <el-table-column label="是否单身" align="center" prop="isDog" />
      <el-table-column label="身份证姓名" align="center" prop="idName" />
      <el-table-column label="认证手机号" align="center" prop="idPhone" />
      <el-table-column label="身份证号码" align="center" prop="idNumber" />
      <el-table-column label="身份证有效期" align="center" prop="idDateLimit" />
      <el-table-column label="是否认证" align="center" prop="idCardStatus" />
      <el-table-column label="相册锁定" align="center" prop="imageLock" />
      <el-table-column label="是否官方" align="center" prop="official" />
      <el-table-column label="是否代理" align="center" prop="isAgent" />
      <el-table-column label="是否线下认证" align="center" prop="isAuth" />
      <el-table-column label="场景值" align="center" prop="scene" />
      <el-table-column label="是否黑名单" align="center" prop="isBlack" />
      <el-table-column label="是否是店铺" align="center" prop="isStore" />
      <el-table-column label="是否是管理" align="center" prop="isManager" />
      <el-table-column label="微信号" align="center" prop="wechat" />
      <el-table-column label="微信号查看状态" align="center" prop="wechatStatus" />
      <el-table-column label="微信号认证状态" align="center" prop="wechatCheck" />
      <el-table-column label="是否显示(0否 1是)" align="center" prop="isShow" />
      <el-table-column label="姓名" align="center" prop="cardName" />
      <el-table-column label="身份证号" align="center" prop="cardNo" />
      <el-table-column label="用户性别" align="center" prop="sex" />
      <el-table-column label="身高" align="center" prop="bodyHeight" />
      <el-table-column label="体重" align="center" prop="bodyWeight" />
      <el-table-column label="陪玩状态" align="center" prop="playStatus" />
      <el-table-column label="陪玩单价" align="center" prop="playCoin" />
      <el-table-column label="游戏昵称" align="center" prop="gameName" />
      <el-table-column label="游戏段位" align="center" prop="gameLevel" />
      <el-table-column label="游戏大区" align="center" prop="gameArea" />
      <el-table-column label="生日" align="center" prop="birthday" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.birthday, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="年龄" align="center" prop="age" />
      <el-table-column label="精度" align="center" prop="lon" />
      <el-table-column label="纬度" align="center" prop="lat" />
      <el-table-column label="省" align="center" prop="province" />
      <el-table-column label="市" align="center" prop="city" />
      <el-table-column label="区" align="center" prop="district" />
      <el-table-column label="关注总数" align="center" prop="heartNum" />
      <el-table-column label="组队总数" align="center" prop="gameNum" />
      <el-table-column label="粉丝总数" align="center" prop="fansNum" />
      <el-table-column label="弹出次数" align="center" prop="tipNum" />
      <el-table-column label="动态总数" align="center" prop="dynamicNum" />
      <el-table-column label="访客总数" align="center" prop="visitNum" />
      <el-table-column label="是否新增访客" align="center" prop="visitRead" />
      <el-table-column label="每天添加微信次数" align="center" prop="wechatNum" />
      <el-table-column label="每天发布动态次数" align="center" prop="publishNum" />
      <el-table-column label="每天免费打招呼次数" align="center" prop="applyNum" />
      <el-table-column label="下次打招呼时间" align="center" prop="nextApplyTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.nextApplyTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="会员次数下次更新时间" align="center" prop="nextTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.nextTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="解封时间" align="center" prop="openTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.openTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="会员开始时间" align="center" prop="vipStartTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.vipStartTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="会员结束时间" align="center" prop="vipEndTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.vipEndTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="每天查看招呼次数" align="center" prop="readNum" />
      <el-table-column label="查看招呼次数下次更新时间" align="center" prop="readNextTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.readNextTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="二维码" align="center" prop="qrCode" />
      <el-table-column label="新增粉丝数" align="center" prop="fansNewNum" />
      <el-table-column label="新增评论数" align="center" prop="commentNewNum" />
      <el-table-column label="新增点赞数" align="center" prop="giveNewNum" />
      <el-table-column label="相册" align="center" prop="albums" />
      <el-table-column label="职业" align="center" prop="profession" />
      <el-table-column label="兴趣爱好" align="center" prop="hobby" />
      <el-table-column label="自我介绍" align="center" prop="introduce" />
      <el-table-column label="是否完善过基础信息(1已完善0未完善)" align="center" prop="isWelcome" />
      <el-table-column label="是否贵族" align="center" prop="isPay" />
      <el-table-column label="是否发送过" align="center" prop="isSend" />
      <el-table-column label="是否发送过" align="center" prop="isTip" />
      <el-table-column label="支付总额" align="center" prop="payNum" />
      <el-table-column label="权重" align="center" prop="weight" />
      <el-table-column label="邀请码" align="center" prop="inviteCode" />
      <el-table-column label="头像地址" align="center" prop="avatar" />
      <el-table-column label="密码" align="center" prop="password" />
      <el-table-column label="token" align="center" prop="token" />
      <el-table-column label="帐号状态" align="center" prop="status" />
      <el-table-column label="最后登录IP" align="center" prop="loginIp" />
      <el-table-column label="最后登录时间" align="center" prop="loginDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.loginDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['wq:userRecord:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['wq:userRecord:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改用户信息审核对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="交友ID" prop="friendId">
          <el-input v-model="form.friendId" placeholder="请输入交友ID" />
        </el-form-item>
        <el-form-item label="邀请人ID" prop="visitUserId">
          <el-input v-model="form.visitUserId" placeholder="请输入邀请人ID" />
        </el-form-item>
        <el-form-item label="部门ID" prop="deptId">
          <el-input v-model="form.deptId" placeholder="请输入部门ID" />
        </el-form-item>
        <el-form-item label="公众号ID" prop="wxId">
          <el-input v-model="form.wxId" placeholder="请输入公众号ID" />
        </el-form-item>
        <el-form-item label="小程序ID" prop="appId">
          <el-input v-model="form.appId" placeholder="请输入小程序ID" />
        </el-form-item>
        <el-form-item label="unionId" prop="unionId">
          <el-input v-model="form.unionId" placeholder="请输入unionId" />
        </el-form-item>
        <el-form-item label="openId" prop="openId">
          <el-input v-model="form.openId" placeholder="请输入openId" />
        </el-form-item>
        <el-form-item label="公众号openId" prop="wxOpenId">
          <el-input v-model="form.wxOpenId" placeholder="请输入公众号openId" />
        </el-form-item>
        <el-form-item label="提现比例" prop="cashRate">
          <el-input v-model="form.cashRate" placeholder="请输入提现比例" />
        </el-form-item>
        <el-form-item label="价格" prop="shopPrice">
          <el-input v-model="form.shopPrice" placeholder="请输入价格" />
        </el-form-item>
        <el-form-item label="投票次数" prop="voteNum">
          <el-input v-model="form.voteNum" placeholder="请输入投票次数" />
        </el-form-item>
        <el-form-item label="用户账号" prop="userName">
          <el-input v-model="form.userName" placeholder="请输入用户账号" />
        </el-form-item>
        <el-form-item label="用户昵称" prop="nickName">
          <el-input v-model="form.nickName" placeholder="请输入用户昵称" />
        </el-form-item>
        <el-form-item label="个性签名" prop="signName">
          <el-input v-model="form.signName" placeholder="请输入个性签名" />
        </el-form-item>
        <el-form-item label="用户邮箱" prop="email">
          <el-input v-model="form.email" placeholder="请输入用户邮箱" />
        </el-form-item>
        <el-form-item label="手机号码" prop="phonenumber">
          <el-input v-model="form.phonenumber" placeholder="请输入手机号码" />
        </el-form-item>
        <el-form-item label="身份证正面" prop="idCardFront">
          <el-input v-model="form.idCardFront" placeholder="请输入身份证正面" />
        </el-form-item>
        <el-form-item label="身份证反面" prop="idCardBack">
          <el-input v-model="form.idCardBack" placeholder="请输入身份证反面" />
        </el-form-item>
        <el-form-item label="是否单身" prop="isDog">
          <el-input v-model="form.isDog" placeholder="请输入是否单身" />
        </el-form-item>
        <el-form-item label="身份证姓名" prop="idName">
          <el-input v-model="form.idName" placeholder="请输入身份证姓名" />
        </el-form-item>
        <el-form-item label="认证手机号" prop="idPhone">
          <el-input v-model="form.idPhone" placeholder="请输入认证手机号" />
        </el-form-item>
        <el-form-item label="身份证号码" prop="idNumber">
          <el-input v-model="form.idNumber" placeholder="请输入身份证号码" />
        </el-form-item>
        <el-form-item label="身份证有效期" prop="idDateLimit">
          <el-input v-model="form.idDateLimit" placeholder="请输入身份证有效期" />
        </el-form-item>
        <el-form-item label="相册锁定" prop="imageLock">
          <el-input v-model="form.imageLock" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="是否官方" prop="official">
          <el-input v-model="form.official" placeholder="请输入是否官方" />
        </el-form-item>
        <el-form-item label="是否代理" prop="isAgent">
          <el-input v-model="form.isAgent" placeholder="请输入是否代理" />
        </el-form-item>
        <el-form-item label="是否线下认证" prop="isAuth">
          <el-input v-model="form.isAuth" placeholder="请输入是否线下认证" />
        </el-form-item>
        <el-form-item label="场景值" prop="scene">
          <el-input v-model="form.scene" placeholder="请输入场景值" />
        </el-form-item>
        <el-form-item label="是否黑名单" prop="isBlack">
          <el-input v-model="form.isBlack" placeholder="请输入是否黑名单" />
        </el-form-item>
        <el-form-item label="是否是店铺" prop="isStore">
          <el-input v-model="form.isStore" placeholder="请输入是否是店铺" />
        </el-form-item>
        <el-form-item label="是否是管理" prop="isManager">
          <el-input v-model="form.isManager" placeholder="请输入是否是管理" />
        </el-form-item>
        <el-form-item label="微信号" prop="wechat">
          <el-input v-model="form.wechat" placeholder="请输入微信号" />
        </el-form-item>
        <el-form-item label="微信号认证状态" prop="wechatCheck">
          <el-input v-model="form.wechatCheck" placeholder="请输入微信号认证状态" />
        </el-form-item>
        <el-form-item label="是否显示(0否 1是)" prop="isShow">
          <el-input v-model="form.isShow" placeholder="请输入是否显示(0否 1是)" />
        </el-form-item>
        <el-form-item label="姓名" prop="cardName">
          <el-input v-model="form.cardName" placeholder="请输入姓名" />
        </el-form-item>
        <el-form-item label="身份证号" prop="cardNo">
          <el-input v-model="form.cardNo" placeholder="请输入身份证号" />
        </el-form-item>
        <el-form-item label="身高" prop="bodyHeight">
          <el-input v-model="form.bodyHeight" placeholder="请输入身高" />
        </el-form-item>
        <el-form-item label="体重" prop="bodyWeight">
          <el-input v-model="form.bodyWeight" placeholder="请输入体重" />
        </el-form-item>
        <el-form-item label="陪玩单价" prop="playCoin">
          <el-input v-model="form.playCoin" placeholder="请输入陪玩单价" />
        </el-form-item>
        <el-form-item label="游戏昵称" prop="gameName">
          <el-input v-model="form.gameName" placeholder="请输入游戏昵称" />
        </el-form-item>
        <el-form-item label="游戏段位" prop="gameLevel">
          <el-input v-model="form.gameLevel" placeholder="请输入游戏段位" />
        </el-form-item>
        <el-form-item label="游戏大区" prop="gameArea">
          <el-input v-model="form.gameArea" placeholder="请输入游戏大区" />
        </el-form-item>
        <el-form-item label="生日" prop="birthday">
          <el-date-picker clearable
            v-model="form.birthday"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择生日">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="年龄" prop="age">
          <el-input v-model="form.age" placeholder="请输入年龄" />
        </el-form-item>
        <el-form-item label="精度" prop="lon">
          <el-input v-model="form.lon" placeholder="请输入精度" />
        </el-form-item>
        <el-form-item label="纬度" prop="lat">
          <el-input v-model="form.lat" placeholder="请输入纬度" />
        </el-form-item>
        <el-form-item label="省" prop="province">
          <el-input v-model="form.province" placeholder="请输入省" />
        </el-form-item>
        <el-form-item label="市" prop="city">
          <el-input v-model="form.city" placeholder="请输入市" />
        </el-form-item>
        <el-form-item label="区" prop="district">
          <el-input v-model="form.district" placeholder="请输入区" />
        </el-form-item>
        <el-form-item label="关注总数" prop="heartNum">
          <el-input v-model="form.heartNum" placeholder="请输入关注总数" />
        </el-form-item>
        <el-form-item label="组队总数" prop="gameNum">
          <el-input v-model="form.gameNum" placeholder="请输入组队总数" />
        </el-form-item>
        <el-form-item label="粉丝总数" prop="fansNum">
          <el-input v-model="form.fansNum" placeholder="请输入粉丝总数" />
        </el-form-item>
        <el-form-item label="弹出次数" prop="tipNum">
          <el-input v-model="form.tipNum" placeholder="请输入弹出次数" />
        </el-form-item>
        <el-form-item label="动态总数" prop="dynamicNum">
          <el-input v-model="form.dynamicNum" placeholder="请输入动态总数" />
        </el-form-item>
        <el-form-item label="访客总数" prop="visitNum">
          <el-input v-model="form.visitNum" placeholder="请输入访客总数" />
        </el-form-item>
        <el-form-item label="是否新增访客" prop="visitRead">
          <el-input v-model="form.visitRead" placeholder="请输入是否新增访客" />
        </el-form-item>
        <el-form-item label="每天添加微信次数" prop="wechatNum">
          <el-input v-model="form.wechatNum" placeholder="请输入每天添加微信次数" />
        </el-form-item>
        <el-form-item label="每天发布动态次数" prop="publishNum">
          <el-input v-model="form.publishNum" placeholder="请输入每天发布动态次数" />
        </el-form-item>
        <el-form-item label="每天免费打招呼次数" prop="applyNum">
          <el-input v-model="form.applyNum" placeholder="请输入每天免费打招呼次数" />
        </el-form-item>
        <el-form-item label="下次打招呼时间" prop="nextApplyTime">
          <el-date-picker clearable
            v-model="form.nextApplyTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择下次打招呼时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="会员次数下次更新时间" prop="nextTime">
          <el-date-picker clearable
            v-model="form.nextTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择会员次数下次更新时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="解封时间" prop="openTime">
          <el-date-picker clearable
            v-model="form.openTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择解封时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="会员开始时间" prop="vipStartTime">
          <el-date-picker clearable
            v-model="form.vipStartTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择会员开始时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="会员结束时间" prop="vipEndTime">
          <el-date-picker clearable
            v-model="form.vipEndTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择会员结束时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="每天查看招呼次数" prop="readNum">
          <el-input v-model="form.readNum" placeholder="请输入每天查看招呼次数" />
        </el-form-item>
        <el-form-item label="查看招呼次数下次更新时间" prop="readNextTime">
          <el-date-picker clearable
            v-model="form.readNextTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择查看招呼次数下次更新时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="二维码" prop="qrCode">
          <el-input v-model="form.qrCode" placeholder="请输入二维码" />
        </el-form-item>
        <el-form-item label="新增粉丝数" prop="fansNewNum">
          <el-input v-model="form.fansNewNum" placeholder="请输入新增粉丝数" />
        </el-form-item>
        <el-form-item label="新增评论数" prop="commentNewNum">
          <el-input v-model="form.commentNewNum" placeholder="请输入新增评论数" />
        </el-form-item>
        <el-form-item label="新增点赞数" prop="giveNewNum">
          <el-input v-model="form.giveNewNum" placeholder="请输入新增点赞数" />
        </el-form-item>
        <el-form-item label="相册" prop="albums">
          <el-input v-model="form.albums" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="职业" prop="profession">
          <el-input v-model="form.profession" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="兴趣爱好" prop="hobby">
          <el-input v-model="form.hobby" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="自我介绍" prop="introduce">
          <el-input v-model="form.introduce" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="是否完善过基础信息(1已完善0未完善)" prop="isWelcome">
          <el-input v-model="form.isWelcome" placeholder="请输入是否完善过基础信息(1已完善0未完善)" />
        </el-form-item>
        <el-form-item label="是否贵族" prop="isPay">
          <el-input v-model="form.isPay" placeholder="请输入是否贵族" />
        </el-form-item>
        <el-form-item label="是否发送过" prop="isSend">
          <el-input v-model="form.isSend" placeholder="请输入是否发送过" />
        </el-form-item>
        <el-form-item label="是否发送过" prop="isTip">
          <el-input v-model="form.isTip" placeholder="请输入是否发送过" />
        </el-form-item>
        <el-form-item label="支付总额" prop="payNum">
          <el-input v-model="form.payNum" placeholder="请输入支付总额" />
        </el-form-item>
        <el-form-item label="权重" prop="weight">
          <el-input v-model="form.weight" placeholder="请输入权重" />
        </el-form-item>
        <el-form-item label="邀请码" prop="inviteCode">
          <el-input v-model="form.inviteCode" placeholder="请输入邀请码" />
        </el-form-item>
        <el-form-item label="头像地址" prop="avatar">
          <el-input v-model="form.avatar" placeholder="请输入头像地址" />
        </el-form-item>
        <el-form-item label="密码" prop="password">
          <el-input v-model="form.password" placeholder="请输入密码" />
        </el-form-item>
        <el-form-item label="token" prop="token">
          <el-input v-model="form.token" placeholder="请输入token" />
        </el-form-item>
        <el-form-item label="删除标志" prop="delFlag">
          <el-input v-model="form.delFlag" placeholder="请输入删除标志" />
        </el-form-item>
        <el-form-item label="最后登录IP" prop="loginIp">
          <el-input v-model="form.loginIp" placeholder="请输入最后登录IP" />
        </el-form-item>
        <el-form-item label="最后登录时间" prop="loginDate">
          <el-date-picker clearable
            v-model="form.loginDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择最后登录时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listUserRecord, getUserRecord, delUserRecord, addUserRecord, updateUserRecord } from "@/api/wq/userRecord";

export default {
  name: "UserRecord",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 用户信息审核表格数据
      userRecordList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        friendId: null,
        visitUserId: null,
        deptId: null,
        wxId: null,
        appId: null,
        unionId: null,
        openId: null,
        wxOpenId: null,
        cashRate: null,
        shopPrice: null,
        voteNum: null,
        userName: null,
        nickName: null,
        signName: null,
        userType: null,
        email: null,
        phonenumber: null,
        idCardFront: null,
        idCardBack: null,
        isDog: null,
        idName: null,
        idPhone: null,
        idNumber: null,
        idDateLimit: null,
        idCardStatus: null,
        imageLock: null,
        official: null,
        isAgent: null,
        isAuth: null,
        scene: null,
        isBlack: null,
        isStore: null,
        isManager: null,
        wechat: null,
        wechatStatus: null,
        wechatCheck: null,
        isShow: null,
        cardName: null,
        cardNo: null,
        sex: null,
        bodyHeight: null,
        bodyWeight: null,
        playStatus: null,
        playCoin: null,
        gameName: null,
        gameLevel: null,
        gameArea: null,
        birthday: null,
        age: null,
        lon: null,
        lat: null,
        province: null,
        city: null,
        district: null,
        heartNum: null,
        gameNum: null,
        fansNum: null,
        tipNum: null,
        dynamicNum: null,
        visitNum: null,
        visitRead: null,
        wechatNum: null,
        publishNum: null,
        applyNum: null,
        nextApplyTime: null,
        nextTime: null,
        openTime: null,
        vipStartTime: null,
        vipEndTime: null,
        readNum: null,
        readNextTime: null,
        qrCode: null,
        fansNewNum: null,
        commentNewNum: null,
        giveNewNum: null,
        albums: null,
        profession: null,
        hobby: null,
        introduce: null,
        isWelcome: null,
        isPay: null,
        isSend: null,
        isTip: null,
        payNum: null,
        weight: null,
        inviteCode: null,
        avatar: null,
        password: null,
        token: null,
        status: null,
        loginIp: null,
        loginDate: null,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询用户信息审核列表 */
    getList() {
      this.loading = true;
      listUserRecord(this.queryParams).then(response => {
        this.userRecordList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        userId: null,
        friendId: null,
        visitUserId: null,
        deptId: null,
        wxId: null,
        appId: null,
        unionId: null,
        openId: null,
        wxOpenId: null,
        cashRate: null,
        shopPrice: null,
        voteNum: null,
        userName: null,
        nickName: null,
        signName: null,
        userType: null,
        email: null,
        phonenumber: null,
        idCardFront: null,
        idCardBack: null,
        isDog: null,
        idName: null,
        idPhone: null,
        idNumber: null,
        idDateLimit: null,
        idCardStatus: "0",
        imageLock: null,
        official: null,
        isAgent: null,
        isAuth: null,
        scene: null,
        isBlack: null,
        isStore: null,
        isManager: null,
        wechat: null,
        wechatStatus: "0",
        wechatCheck: null,
        isShow: null,
        cardName: null,
        cardNo: null,
        sex: null,
        bodyHeight: null,
        bodyWeight: null,
        playStatus: "0",
        playCoin: null,
        gameName: null,
        gameLevel: null,
        gameArea: null,
        birthday: null,
        age: null,
        lon: null,
        lat: null,
        province: null,
        city: null,
        district: null,
        heartNum: null,
        gameNum: null,
        fansNum: null,
        tipNum: null,
        dynamicNum: null,
        visitNum: null,
        visitRead: null,
        wechatNum: null,
        publishNum: null,
        applyNum: null,
        nextApplyTime: null,
        nextTime: null,
        openTime: null,
        vipStartTime: null,
        vipEndTime: null,
        readNum: null,
        readNextTime: null,
        qrCode: null,
        fansNewNum: null,
        commentNewNum: null,
        giveNewNum: null,
        albums: null,
        profession: null,
        hobby: null,
        introduce: null,
        isWelcome: null,
        isPay: null,
        isSend: null,
        isTip: null,
        payNum: null,
        weight: null,
        inviteCode: null,
        avatar: null,
        password: null,
        token: null,
        status: "0",
        delFlag: null,
        loginIp: null,
        loginDate: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        remark: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.userId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加用户信息审核";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const userId = row.userId || this.ids
      getUserRecord(userId).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改用户信息审核";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.userId != null) {
            updateUserRecord(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addUserRecord(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const userIds = row.userId || this.ids;
      this.$modal.confirm('是否确认删除用户信息审核编号为"' + userIds + '"的数据项？').then(function() {
        return delUserRecord(userIds);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('wq/userRecord/export', {
        ...this.queryParams
      }, `userRecord_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
